package com.example.survey_determination.service.impl;


import com.example.survey_determination.dao.HumanInjuryInfoDao;
import com.example.survey_determination.service.HumanInjuryInfoService;
import entity.human_injury_info;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;

/**
 * (HumanInjuryInfo)表服务实现类
 *
 * @author makejava
 * @since 2022-01-10 23:59:34
 */
@Service("humanInjuryInfoService")
public class HumanInjuryInfoServiceImpl implements HumanInjuryInfoService {
    @Resource
    private HumanInjuryInfoDao humanInjuryInfoDao;

    /**
     * 通过ID查询单条数据
     *
     * @return 实例对象
     */
    @Override
    public human_injury_info queryById(String claimMainId) {
        return this.humanInjuryInfoDao.queryById(claimMainId);
    }

    @Override
    public human_injury_info selectAll() {
        return humanInjuryInfoDao.selectAll();
    }

    @Override
    public int insert(human_injury_info human_injury_info) {
        return this.humanInjuryInfoDao.insert(human_injury_info);
    }


    /**
     * 通过主键删除数据
     *
     * @param humaninjuryid 主键
     * @return 是否成功
     */
    @Override
    public boolean deleteById(Integer humaninjuryid) {
        return this.humanInjuryInfoDao.deleteById(humaninjuryid) > 0;
    }
}
